package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30)"json:"account"`
	Password string `gorm:"type:varchar(32)"json:"password"`
	Tel      string `gorm:"type:varchar(30)"json:"tel"`
	Name     string `gorm:"type:varchar(30)"json:"name"`
}
type Activity struct {
	gorm.Model
	Image     string `gorm:"type:varchar(30)"json:"image"`
	Name      string `gorm:"type:varchar(30)"json:"name"`
	Publisher string `gorm:"type:varchar(30)"json:"publisher"`
	Class     int64  `gorm:"type:int"json:"class"`
	Message   string `gorm:"type:varchar(30)"json:"message"`
	UserId    int64  `gorm:"type:int"json:"userId"`
	Thumbs    int64  `gorm:"type:int"json:"thumbs"`
}

type Class struct {
	gorm.Model
	UserId     int64 `gorm:"type:int"json:"userId"`
	ActivityId int64 `gorm:"type:int"json:"activityId"`
}
